<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LTE-UNB: Link/Link2.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LTE-UNB
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">Link/Link2.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _Link_h_</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _Link_h_</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;itpp/itbase.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="_physical_node_8h.html">PhysicalNode.h</a>&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;<a class="code" href="_radio_channel_8h.html">RadioChannel.h</a>&quot;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="_simulation_environment_8h.html">SimulationEnvironment.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">using namespace </span>itpp;
<a name="l00020"></a>00020 <span class="keyword">using namespace </span>std;
<a name="l00021"></a>00021 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>Link
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028 
<a name="l00033"></a>00033 <span class="keyword">class </span>Link
<a name="l00034"></a>00034 {
<a name="l00035"></a>00035    <span class="keyword">public</span>:
<a name="l00036"></a>00036            
<a name="l00041"></a>00041       ~Link();
<a name="l00042"></a>00042       
<a name="l00047"></a>00047       <span class="keyword">static</span> Link* getInstance();
<a name="l00048"></a>00048       
<a name="l00053"></a>00053       <span class="keywordtype">void</span> setParameters();
<a name="l00054"></a>00054       
<a name="l00059"></a>00059       <span class="keywordtype">void</span> initialize();
<a name="l00060"></a>00060       
<a name="l00065"></a>00065       <span class="keywordtype">void</span> clear();
<a name="l00066"></a>00066       
<a name="l00071"></a>00071       <span class="keywordtype">void</span> createLinks();
<a name="l00072"></a>00072       
<a name="l00077"></a>00077       <span class="keywordtype">double</span> getLoss( <span class="keywordtype">int</span> i );
<a name="l00078"></a>00078       
<a name="l00083"></a>00083       <span class="keywordtype">double</span> getTotalFading( <span class="keywordtype">int</span> eNodeBId, 
<a name="l00084"></a>00084                              <span class="keywordtype">int</span> userId,
<a name="l00085"></a>00085                              <span class="keywordtype">double</span> time,
<a name="l00086"></a>00086                              <span class="keywordtype">double</span> frequency,
<a name="l00087"></a>00087                              <span class="keywordtype">int</span> antenna );
<a name="l00088"></a>00088       
<a name="l00093"></a>00093       <span class="keywordtype">void</span> calculateCQI();
<a name="l00094"></a>00094       
<a name="l00099"></a>00099       <span class="keywordtype">void</span> calculateSINR();
<a name="l00100"></a>00100       
<a name="l00105"></a>00105       <span class="keywordtype">void</span> calculateSINRs();
<a name="l00106"></a>00106       
<a name="l00111"></a>00111       <span class="keywordtype">double</span> calculateSINRPerUser( <span class="keywordtype">int</span> userId,
<a name="l00112"></a>00112                                    <span class="keywordtype">int</span> eNodeBId,
<a name="l00113"></a>00113                                    <span class="keywordtype">double</span> frequency,
<a name="l00114"></a>00114                                    <span class="keywordtype">int</span> antenna );
<a name="l00115"></a>00115       
<a name="l00116"></a>00116    <span class="keyword">private</span>:
<a name="l00117"></a>00117       
<a name="l00122"></a>00122       Link();
<a name="l00123"></a>00123       
<a name="l00128"></a>00128       <span class="keyword">static</span> Link* instance_;    
<a name="l00129"></a>00129       
<a name="l00134"></a>00134       <span class="keywordtype">int</span> numberUsers_;
<a name="l00135"></a>00135       
<a name="l00140"></a>00140       <span class="keywordtype">int</span> numberENodeBs_;
<a name="l00141"></a>00141       
<a name="l00146"></a>00146       ivec userId_;
<a name="l00147"></a>00147       
<a name="l00152"></a>00152       ivec eNodeBId_;
<a name="l00153"></a>00153       
<a name="l00158"></a>00158       vec losses_;   
<a name="l00159"></a>00159       
<a name="l00164"></a>00164       <a class="code" href="class_radio_channel_1_1_radio_channel.html">RadioChannel::RadioChannel</a>* radioChannel_;
<a name="l00165"></a>00165       
<a name="l00170"></a>00170       <a class="code" href="class_simulation_environment_1_1_simulation_environment.html">SimulationEnvironment::SimulationEnvironment</a>* simulationEnvironment_;
<a name="l00171"></a>00171       
<a name="l00176"></a>00176       <span class="keywordtype">double</span> noiseFigure_;
<a name="l00177"></a>00177       
<a name="l00182"></a>00182       <span class="keywordtype">double</span> boltzmannConstant_;
<a name="l00183"></a>00183       
<a name="l00188"></a>00188       <span class="keywordtype">double</span> bandwidth_;
<a name="l00189"></a>00189       
<a name="l00194"></a>00194       <span class="keywordtype">double</span> temperature_;
<a name="l00195"></a>00195       
<a name="l00200"></a>00200       <span class="keywordtype">int</span> numberAntennas_;
<a name="l00201"></a>00201       
<a name="l00202"></a>00202       
<a name="l00203"></a>00203       
<a name="l00204"></a>00204       
<a name="l00205"></a>00205       
<a name="l00206"></a>00206               
<a name="l00207"></a>00207 };
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 };
<a name="l00210"></a>00210 
<a name="l00211"></a>00211 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 25 2012 22:25:34 for LTE-UNB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
